package com.psl.Dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class Conn
{
    public Connection getConn()
    {
        try
        {
            Class.forName("com.mysql.jdbc.Driver");
            String url = "jdbc:mysql://localhost:3306/pslmaster?useUnicode=true&characterEncoding=UTF-8";
//            String username = "PSL";
//            String password = "591892";
            String username = "root";
            String password = "605908wsw";
            return DriverManager.getConnection(url, username, password);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        return null;
    }
}
